package com.wclass.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 提现流水
 * </p>
 *
 * @author 张浩高
 * @since 2018-12-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_withdraw_bill")
@SuppressWarnings("serial")
public class UserWithdrawBill extends SuperEntity<UserWithdrawBill> {



    /**
     * 是否删除（0：有效，1：删除）
     */
    @JSONField(serialize = false)
    @TableLogic
    private Integer state=0;
    /**
     * 提现申请人
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 电话
     */
    private String phone;

    /**
     * 银行名称
     */
    @TableField("bank_name")
    private String bankName;
    /**
     * 银行卡号
     */
    @TableField("bank_no")
    private String bankNo;
    /**
     * 提现金额
     */
    private Long amount;
    /**
     * 提现金额(扣除手续费后)
     */
    @TableField("fact_amount")
    private Long factAmount;
    /**
     * 税点
     */
    private Integer tax;
    /**
     * 扣税金额
     */
    @TableField("tax_amount")
    private Long taxAmount;
    /**
     * 实际打款金额
     */
    @TableField("pay_amount")
    private Long payAmount;
    /**
     * 提现状态(0:申请中，1：提现成功，2：提现失败)
     */
    @TableField("pay_state")
    private Integer payState;
    /**
     * 打款时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 持卡人
     */
    private String cardholder;

    /**
     * Payment voucher
     * 打款凭证
     */
    @TableField("pay_voucher")
    private String payVoucher;




}
